<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <div class="dashboard-index">
      <p class="wel">Welcome To Choice Admin</p>
      <p class="wel">{{ name }}</p>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    height: 80vh;
    position: relative;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
  &-index {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);

    .wel {
      white-space: nowrap;
      font-size: 50px;
      font-weight: 700;
      color: #333;
      text-align: center;
    }

  }
}
</style>
